package com.googlecode.imule.neilisageniuswhoshouldgetanA;

import java.awt.Dimension;
import java.lang.reflect.InvocationTargetException;

import javax.swing.SwingUtilities;

import org.jdesktop.swingx.JXFrame;

public class SwingMain {
    public static void main(String[] args) {
        final String[] _args_ = args;

        try {
            SwingUtilities.invokeAndWait(new Runnable() {
                public void run() {
                    launchInEDT(_args_);
                }
            });
        } catch (InterruptedException e) {
            e.printStackTrace();
        } catch (InvocationTargetException e) {
            e.printStackTrace();
        }
    }

    public static void launchInEDT(String[] args) {
        JXFrame frame = new JXFrame();
        frame.setDefaultCloseOperation(JXFrame.EXIT_ON_CLOSE);
        frame.add(new eMenu());
        frame.setPreferredSize(new Dimension(300, 600));
        frame.pack();
        frame.setLocationByPlatform(true);
        frame.setVisible(true);
    }
}
